/**
 * @module uisample UI组件库示例
 */

'use strict'

import {Route, withRouter, IndexRedirect} from 'react-router'
import React from 'react'
import Button from './components/Button'
import Dialog from './components/Dialog'
import Form from './components/Form'
import Icon from './components/Icon'
import List from './components/List'
import Picker from './components/Picker'
import './style.scss'

const route = (
    <Route key="ui" path="">
        <IndexRedirect to="button"/>
        <Route path="button" component={withRouter(Button)}/>
        <Route path="dialog" component={withRouter(Dialog)}/>
        <Route path="form" component={withRouter(Form)}/>
        <Route path="icon" component={withRouter(Icon)}/>
        <Route path="list" component={withRouter(List)}/>
        <Route path="picker" component={withRouter(Picker)}/>
    </Route>
)

export default {
    route
}
